package net.wanho.util;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import net.wanho.vo.AjaxResult;

/**
 * Author：汤小洋
 * Date：2023-11-10 17:07
 * Description：<描述>
 */
public class ExceptionUtil {

    public static AjaxResult handlerException(String username, BlockException e){
        return AjaxResult.error("Sentinel限流，请稍后再试！" + e.getMessage());
    }

}
